import json

favorite_number = input("Enter your favorite number: ")
filename        = 'favorite_number.json'
with open(filename,'w') as f:
    json.dump(favorite_number,f)
    print(f"I will remember your favorite number:{favorite_number}")
    